<?php
/**
 * Created by PhpStorm.
 * User: shuixian
 * Date: 2019/11/20
 * Time: 18:29
 */
$app = <<<APP



[
{
 "path": "banquet/field/list",
 "name": "BanquetField",
 "component": "/application/banquet/field/list",
 "meta": {
  "keepAlive": true,
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "BanquetField",
   "index": 0,
   "url": "/app/banquet/field/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetList",
   "index": 1,
   "url": "/app/banquet/list/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetEnroll",
   "index": 2,
   "url": "/app/banquet/enroll",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetOrder",
   "index": 3,
   "url": "/app/banquet/order/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetRefund",
   "index": 4,
   "url": "/app/banquet/refund/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetEvaluate",
   "index": 5,
   "url": "/app/banquet/evaluate/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetSet",
   "index": 6,
   "url": "/app/banquet/set",
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "banquet/list/list",
 "name": "BanquetList",
 "component": "/application/banquet/list/list",
 "meta": {
  "keepAlive": true,
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "BanquetField",
   "index": 0,
   "url": "/app/banquet/field/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetList",
   "index": 1,
   "url": "/app/banquet/list/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetEnroll",
   "index": 2,
   "url": "/app/banquet/enroll",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetOrder",
   "index": 3,
   "url": "/app/banquet/order/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetRefund",
   "index": 4,
   "url": "/app/banquet/refund/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetEvaluate",
   "index": 5,
   "url": "/app/banquet/evaluate/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetSet",
   "index": 6,
   "url": "/app/banquet/set",
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "banquet/enroll",
 "name": "BanquetEnroll",
 "component": "/application/banquet/enroll",
 "meta": {
  "keepAlive": true,
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "BanquetField",
   "index": 0,
   "url": "/app/banquet/field/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetList",
   "index": 1,
   "url": "/app/banquet/list/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetEnroll",
   "index": 2,
   "url": "/app/banquet/enroll",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetOrder",
   "index": 3,
   "url": "/app/banquet/order/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetRefund",
   "index": 4,
   "url": "/app/banquet/refund/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetEvaluate",
   "index": 5,
   "url": "/app/banquet/evaluate/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetSet",
   "index": 6,
   "url": "/app/banquet/set",
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "banquet/order/list",
 "name": "BanquetOrder",
 "component": "/application/banquet/order/list",
 "meta": {
  "keepAlive": true,
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "BanquetField",
   "index": 0,
   "url": "/app/banquet/field/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetList",
   "index": 1,
   "url": "/app/banquet/list/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetEnroll",
   "index": 2,
   "url": "/app/banquet/enroll",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetOrder",
   "index": 3,
   "url": "/app/banquet/order/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetRefund",
   "index": 4,
   "url": "/app/banquet/refund/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetEvaluate",
   "index": 5,
   "url": "/app/banquet/evaluate/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetSet",
   "index": 6,
   "url": "/app/banquet/set",
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "banquet/refund/list",
 "name": "BanquetRefund",
 "component": "/application/banquet/refund/list",
 "meta": {
  "keepAlive": true,
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "BanquetField",
   "index": 0,
   "url": "/app/banquet/field/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetList",
   "index": 1,
   "url": "/app/banquet/list/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetEnroll",
   "index": 2,
   "url": "/app/banquet/enroll",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetOrder",
   "index": 3,
   "url": "/app/banquet/order/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetRefund",
   "index": 4,
   "url": "/app/banquet/refund/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetEvaluate",
   "index": 5,
   "url": "/app/banquet/evaluate/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetSet",
   "index": 6,
   "url": "/app/banquet/set",
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "banquet/evaluate/list",
 "name": "BanquetEvaluate",
 "component": "/application/banquet/evaluate/list",
 "meta": {
  "keepAlive": true,
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "BanquetField",
   "index": 0,
   "url": "/app/banquet/field/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetList",
   "index": 1,
   "url": "/app/banquet/list/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetEnroll",
   "index": 2,
   "url": "/app/banquet/enroll",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetOrder",
   "index": 3,
   "url": "/app/banquet/order/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetRefund",
   "index": 4,
   "url": "/app/banquet/refund/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetEvaluate",
   "index": 5,
   "url": "/app/banquet/evaluate/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetSet",
   "index": 6,
   "url": "/app/banquet/set",
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "banquet/set",
 "name": "BanquetSet",
 "component": "/application/banquet/set",
 "meta": {
  "keepAlive": true,
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "BanquetField",
   "index": 0,
   "url": "/app/banquet/field/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetList",
   "index": 1,
   "url": "/app/banquet/list/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetEnroll",
   "index": 2,
   "url": "/app/banquet/enroll",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetOrder",
   "index": 3,
   "url": "/app/banquet/order/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetRefund",
   "index": 4,
   "url": "/app/banquet/refund/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetEvaluate",
   "index": 5,
   "url": "/app/banquet/evaluate/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "BanquetSet",
   "index": 6,
   "url": "/app/banquet/set",
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "banquet/field/edit",
 "name": "BanquetFieldEdit",
 "component": "/application/banquet/field/edit",
 "meta": {
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "BanquetFieldEdit",
   "index": 0,
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "banquet/list/edit",
 "name": "BanquetListEdit",
 "component": "/application/banquet/list/edit",
 "meta": {
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "BanquetListEdit",
   "index": 0,
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "banquet/order/detail",
 "name": "BanquetOrderDetail",
 "component": "/application/banquet/order/detail",
 "meta": {
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "BanquetOrderDetail",
   "index": 0,
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "banquet/refund/detail",
 "name": "BanquetRefundDetail",
 "component": "/application/banquet/refund/detail",
 "meta": {
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "BanquetRefundDetail",
   "index": 0,
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "banquet/field/set",
 "name": "BanquetSet",
 "component": "/application/banquet/set",
 "meta": {
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "BanquetSet",
   "index": 0,
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}

]

APP;


$model = <<<MODEL
{
 "path": "/banquet",
 "component": "Layout",
 "redirect": "/banquet/field",
 "meta": {
  "menuName": "Banquet",
  "icon": "iconchangdiyuyue-1_1",
  "subNavName": [{
   "name": "BanquetManage",
   "url": [{
    "name": "BanquetField",
    "url": "/banquet/field"
   }, {
    "name": "BanquetList",
    "url": "/banquet/list"
   }, {
    "name": "BanquetEnroll",
    "url": "/banquet/enroll"
   }]
  }, {
   "name": "BanquetOrder",
   "url": [{
    "name": "BanquetOrder",
    "url": "/banquet/order"
   }, {
    "name": "BanquetRefund",
    "url": "/banquet/refund"
   }, {
    "name": "BanquetEvaluate",
    "url": "/banquet/evaluate"
   }]
  }, {
   "name": "BanquetSet",
   "url": [{
    "name": "BanquetSet",
    "url": "/banquet/set"
   }]
  }]
 },
 "children": [{
  "path": "field",
  "name": "BanquetManage",
  "component": "/application/banquet/field/list",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "BanquetManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "BanquetField",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "field/edit",
  "name": "BanquetManage",
  "component": "/application/banquet/field/edit",
  "meta": {
   "title": "BanquetManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "BanquetFieldEdit",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "list",
  "name": "BanquetManage",
  "component": "/application/banquet/list/list",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "BanquetManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "BanquetList",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "list/edit",
  "name": "BanquetManage",
  "component": "/application/banquet/list/edit",
  "meta": {
   "title": "BanquetManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "BanquetListEdit",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "enroll",
  "name": "BanquetManage",
  "component": "/application/banquet/enroll",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "BanquetManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "BanquetEnroll",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "order",
  "name": "BanquetManage",
  "component": "/application/banquet/order/list",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "BanquetManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "BanquetOrder",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "order/detail",
  "name": "BanquetManage",
  "component": "/application/banquet/order/detail",
  "meta": {
   "title": "BanquetManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "BanquetOrderDetail",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "refund",
  "name": "BanquetManage",
  "component": "/application/banquet/refund/list",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "BanquetManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "BanquetRefund",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "refund/detail",
  "name": "BanquetManage",
  "component": "/application/banquet/refund/detail",
  "meta": {
   "title": "BanquetManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "BanquetRefundDetail",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "evaluate",
  "name": "BanquetManage",
  "component": "/application/banquet/evaluate/list",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "BanquetManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "BanquetEvaluate",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "set",
  "name": "BanquetManage",
  "component": "/application/banquet/set",
  "meta": {
   "title": "BanquetManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "BanquetSet",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }]
}
MODEL;


$app_name = config('app.AdminModelList')['app_model_name'];

$menu = $app_name=='longbing_banquet'?$model:$app;


return ["banquet" => $menu];


